package com.yuyou.fn.balance.service;

import com.github.wens.framework.service.ISuperService;
import com.github.wens.mybatisplus.plugins.Page;
import com.yuyou.fn.balance.entity.BalanceTransfer;
import com.yuyou.fn.balance.vo.BalanceTransferQueryVo;
import com.yuyou.fn.common.util.Principals;

import java.math.BigDecimal;
import java.util.List;

/**
 *
 * BalanceTransfer 表数据服务层接口
 *
 */
public interface IBalanceTransferService extends ISuperService<BalanceTransfer,Long> {


    Page<BalanceTransfer> findBalanceTransferByQuery(BalanceTransferQueryVo balanceTransferQueryVo, List<Long> campusIds, Integer pageNo, Integer pageSize);

    Long countBalanceTransferByQuery(BalanceTransferQueryVo balanceTransferQueryVo, List<Long> campusIds);

    void audit(Long balanceTransferId, Integer status, String auditRemark, Principals.Principal principal);


    void save(Principals.Principal principal , Long applierMainAccountId, Long destMainAccountId, Long acceptCampusId, BigDecimal amount, String reasonRemark);
}